OBJS=base_time.o classinfo.o object.o rwlock.o stdstring.o thread_object.o
CPPINCLUDE:=./
CPPFLAGS=-g -Wall -I$(CPPINCLUDE)
CC=g++

.PHONY: all amf protocol clean
all:amf protocol $(OBJS)

amf:
	cd amf && $(MAKE)

protocol:
	cd protocol && $(MAKE)

$(OBJS): %.o: %.cpp
	$(CC) $(CPPFLAGS) -c $<

clean:
	cd amf && $(MAKE) clean
	cd protocol && $(MAKE) clean
	-rm *.o